package com.afs.electronicforensics.utils;

import android.app.Activity;
import android.os.AsyncTask;
import android.os.Looper;
import android.widget.EditText;
import android.widget.Toast;

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.net.HttpURLConnection;
import java.net.URL;
import java.util.regex.Matcher;
import java.util.regex.Pattern;

public class CheckPhone {

    //手机格式判断
    public static boolean isMobileNO(String s) {
        Pattern p = Pattern.compile("^((13[0-9])|(14[0,1,4-9])|(15[0-3,5-9])|(16[2,5,6,7])|(17[0-8])|(18[0-9])|(19[0-3,5-9]))\\d{8}$");
        Matcher m = p.matcher(s);
        return m.matches();
    }

}
